﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$SiteName$}</title>
<link href="{$SiteSkin$}images01/style.css" rel="stylesheet" type="text/css" />
<meta name="keywords" content="{$SiteKeyword$}">
<meta name="description" content="{$SiteDescription$}">
</head>

<body>
{$File(top)$}
<div class="wrapper">
	<script type="text/javascript" src="{$SiteDir$}Plugin/FlashFocus/slide/focus.asp?Type=0&Menu=1&Module=3&Width=400&Height=320&textLen=4&skin=mF_games_tb"></script>
	<div style="clear:both"></div>
</div>
<div class="wrapper">
	
</div>
<div class="wrapper">
	<div id="leftbox" class="fleft">
		<div class="nbox">
			<div class="ltitle">新闻动态</div>
			<div class="lbox">
				<ul class="rlist">
					{$For(View,Menu:1;Module:2;Recommend:0;Subject:0;Order:1;Count:10;)$}
					<li><a href="{$List.ViewUrl$}" title="{$List.ViewTitle$}">&middot;&nbsp;{$List.ViewTitle$}</a></li>{$Next$}
				</ul>
			</div>
		</div>
		<div class="nbox">
			<div class="ltitle">搜索</div>
			<div class="lbox">
			<p>&nbsp;</p>
        	<form id="form1" name="form1" method="get" action="{$SiteDir$}Search.asp">
				&nbsp;&nbsp;关键字：<input name="SearchStr" type="text" id="SearchStr" size="10" />
				<input type="submit" name="button" id="button" value="搜索" />
        	</form>
			<p>&nbsp;</p>
			</div>
		</div>
		<div class="nbox">
			<div class="ltitle">友情链接</div>
			<div class="lbox">
			<p>&nbsp;</p>
{$For(Friends,FriendsType:1;FriendsShowType:1;Count:0;)$}
        &nbsp;&nbsp;&nbsp;<a href="{$List.FriendsUrl$}" title="{$List.FriendsName$}" target="_blank"><img src="{$List.FriendsLogo$}" width="88" height="31" alt="{$List.FriendsName$}" /></a>{$Next$}
{$For(Friends,FriendsType:1;FriendsShowType:2;Count:0;)$}
        &nbsp;&nbsp;&nbsp;<a href="{$List.FriendsUrl$}" title="{$List.FriendsName$}" target="_blank">{$List.FriendsName$}</a>{$Next$}
			<p>&nbsp;</p>
			</div>
		</div>
	</div>
	<div id="rightbox" class="fright">
		<div class="nbox">
			<div class="rtitle">公司简介</div>
			<div class="rbox" id="about">
				<!--<script type="text/javascript" src="{$SiteDir$}Plugin/FlashFocus/slide/focus.asp?Type=0&Menu=1&Module=2&Width=400&Height=290&skin=mF_liuzg"></script>-->
				{$Info(1)$}
			</div>
		</div>
		<div class="nbox">
			<div class="rtitle">公司产品</div>
			<div class="rbox">
				<ul class="plist">
{$For(View,Menu:1;Module:3;Recommend:0;Subject:0;Order:1;Count:8;)$}
					<li><a href="{$List.ViewUrl$}" title="{$List.ViewTitle$}" target="_blank"><img src="{$If({$List.ViewPic$},,<>)$}{$List.ViewPic$}{$Else$}{$SiteDir$}Images/nophoto.gif{$End If$}" width="133" height="95" /><br />{$List.ViewTitle$}</a></li>{$Next$}
				</ul>
				<div class="cal"></div>
			</div>
		</div>
	</div>
	<div class="cal"></div>
	<hr>
		<b>三级菜单测试</b><br>

	{$For(Nav,Menu:1;Module:0;Level:1;Recall:0;)$}
		一级：{$List.NavName$}_{$List.NavId$}<br>
		{$For(Nav,Menu:1;Module:{$List.NavId$};Level:1;Recall:0;)$}
		+++二级：{$List.NavName$}_{$List.NavId$}<br>
			{$List.NavSub$}
		{$Next$}
	{$Next$}
	<hr>

	
	

	<br>for循环调用的是栏目ID为1的 “关于我们” <b>Module:1;</b><br><br><br>

	<b>下面取ID=9的栏目内容</b><br>
	{$For(Nav,Menu:1;Module:1;Level:1;Recall:0;)$}

	{$If({$List.NavId$},9,=)$}
	
	
	ID ==> {$List.NavId$}<br>
	name ==> {$List.NavName$}<br>
	content（有html格式） ==> {$List.NavContent$}<br>
	内容剪切50个字 ==> {$StrCut(|cutStr_s|{$List.NavContent$}|cutStr_e|,50)$} <br>
	==================================<br><br>
	{$End If$}
	{$Next$}
</div>
{$File(bottom)$}
</body>
</html>
